﻿package framework.core;


/**
 * Creation date: (2003-08-28)
 * @author: adminnistrator
 * 有名字的值包装类
 */
 
public class NamedValue extends Value
{
	private String m_name = null;
	
	public static final String CLASS_NAME = NamedValue.class.getName();
	
	public NamedValue(String name,int v)
	{
		super(v);
		m_name = name ;
	}
	public NamedValue(String name,double v)
	{
		super(v);
		m_name = name ;
	}
	public NamedValue(String name,String v)
	{
		super(v);
		m_name = name ;
	}
	public NamedValue(String name,DateUtil v)
	{
		super(v);
		m_name = name ;
	}
	public NamedValue(String name,Value v)
	{
		super(v);
		m_name = name ;
	}
	
	public String getName()
	{
		return m_name;
	}
	public void setName(String v)
	{
		m_name = v;
	}
	public String toString()
	{
		return super.toString()+"[name="+getName()+"]";
	}
}
